package com.ywd.materials.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 报表统计表实体类(入库/出库/盘库)
 */
@Accessors(chain = true)
@Data
@TableName("materials_report")
public class MaterialsReportEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 统计ID
     */
    @Schema(description = "统计ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 关联数据ID(入库ID/出库ID)
     */
    @Schema(description = "关联数据ID(入库ID/出库ID)")
    private String inoutId;

    /**
     * 仓库ID
     */
    @Schema(description = "仓库ID")
    private Long warehouseId;

    /**
     * 报表类型(INBOUND=入库, OUTBOUND=出库, INVENTORY=盘库)
     */
    @Schema(description = "报表类型(INBOUND=入库, OUTBOUND=出库, INVENTORY=盘库)")
    private String type;

    /**
     * 统计日期
     */
    @Schema(description = "统计日期")
    private LocalDateTime recordTime;

    /**
     * 附件URL地址
     */
    @Schema(description = "附件URL地址")
    private String fileUrl;

    /**
     * 数据来源(MANUAL=手动, AUTO=自动)
     */
    @Schema(description = "数据来源(MANUAL=手动, AUTO=自动)")
    private String dataSource;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 状态(0=进行中，1=已完成)
     */
    @Schema(description = "状态(0=进行中，1=已完成)")
    private Integer status;

    /**
     * 创建人
     */
    @Schema(description = "创建人")
    private Long creator;

    /**
     * 更新人
     */
    @Schema(description = "更新人")
    private Long updater;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;
}
